package cn.broadmax.boot.oauth;

import cn.broadmax.boot.base.model.LoginUser;
import cn.broadmax.boot.constant.ThirdAccountType;

/**
 * oauth 登陆 驱动
 * @author jeff
 * @date 2020/6/25
 */
public interface OauthLoginProvider {


    ThirdAccountType getType();

    OauthLoginResponse login(String authCode);

    LoginUser saveUser(String accountId, OauthLoginResponse response);

}
